<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>@if($readstate == 1){{$users->user_name}}想读的书@elseif($readstate == 2){{$users->user_name}}在读的书@else{{$users->user_name}}读过的书@endif</title>
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书">
    <meta name="keywords" content="夜读书">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/mobile.css') }}">    
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('mobile.nav')
<div id="reads">
    <div class="uinfo">
    <a href="{{url('mobile/uhome/'.$users->uid)}}">
        <div class="face">        
            @if($users->avatar_file != '')
                <img src="http://www.yedushu.com/{{$users->avatar_file}}"></img>
            @else
                <img src="http://www.yedushu.com/usersface/default/avatar-max.png"></img>
            @endif
        </div>
        <div class="title">
            @if($readstate == 1)
                {{$users->user_name}}想读的书
            @elseif($readstate == 2)
                {{$users->user_name}}在读的书
            @else
                {{$users->user_name}}读过的书
            @endif
        </div>
    </a>
    </div>
    <div class="mod reads-list">
        @if ($reads->count() != 0)
        @foreach ($reads as $read)
        <a href="{{url('mobile/info')}}/{{ $read->books->book_id }}" target="_blank">
        <dl>
        <dt>            
            <img src="{{ asset($read->books->bimg) }}">
        </dt>
        <dd>
            {{ $read->books->book_name }}
            <div class="desc">
            @if($read->books->zuozhe!=""){{ $read->books->zuozhe }} /@endif 
            @if($read->books->yizhe!=""){{ $read->books->yizhe }} / @endif 
            @if($read->books->chubanshe!=""){{ $read->books->chubanshe }} /@endif 
            @if($read->books->chubannian!=""){{ $read->books->chubannian }} @endif
            </div>
            <div class="rating">
            <span class="allstar"></span>
            <span class="rating_nums">@if($read->memo!="")备注：{{ $read->memo }}@endif</span>
            </div>
        </dd>
        </dl>
        </a>
        @endforeach
        @else
            暂时没有阅读书籍！
        @endif
    </div>
    <div class="simplePaginate"> 
        {!! $reads->render() !!}
    </div>
</div> 
@include('mobile.footer')
</body>
</html>